Skip to content

Conversation

@JaneEdwMcN
Copy link

Video Store API

Congratulations! You're submitting your assignment!
If you didn't get to the functionality the question is asking about, reply with what you would have done if you had completed it.

Comprehension Questions

Question Answer
Explain how you came up with the design of your ERD, based on the seed data. We named our columns after the fields in the seed data.
What would be the Big-O time complexity of your /customers & /movies endpoints? What does the time complexity depend on? Explain your reasoning. It would be O(n) because for the two methods this question is possibly referring to (movies/index and customers/index) we are collecting all of the Customer and Movie instances.
What is the Big-O time complexity of the POST /rentals/check-in endpoint? What does the time complexity depend on? Explain your reasoning. We used find_by. We are not sure of the time complexity because there is no officially maintained list of time complexity for Ruby built in methods. We would guess linear because we are searching in some kind of array.
Describe a set of positive and negative test cases you implemented for a model. We tested validations with valid data and invalid data.
Describe a set of positive and negative test cases you implemented for a controller. We tested pagination for valid and invalid input.
How does your API respond when bad data is sent to it? It sends an error message.
Describe one of your custom model methods and why you chose to wrap that functionality into a method. We created check_in and check_out methods in movies and customers models to try to separate concerns when checking in and out rentals.
Do you have any recommendations on how we could improve this project for the next cohort? Reinforce the vocabulary for the word "endpoint". Less optional stuff. We enjoy doing optionals, but these seemed excessive.
Link to Trello https://trello.com/b/w4K6VAHW/jesse-and-jane-video-store-board
Link to ERD https://www.lucidchart.com/invitations/accept/1649d72f-3972-4fd3-8ee8-04289777539f
Summary

JaneEdwMcN and others added 30 commits November 7, 2018 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants